package com.javase;

import java.util.Scanner;

public class MethodExercise01 {
    public static void main(String[] args) {
        AA aa = new AA();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int a = scanner.nextInt();
        boolean b = aa.judgment(a);
        System.out.println(b);
        System.out.println("=========================");
        aa.print(5,5,'#');
    }
}

class AA{
    public boolean judgment(int a){
        boolean b = true;
        if (a % 2 != 0){
            b = false;
        }
        return b;
    }
    public void print(int row,int col,char a){
        for (int i = 0;i < row;i++){
            for (int j = 0; j < col;j++){
                System.out.print(a);
            }
            System.out.println();
        }
    }
}